package com.alliky.home.mvp.contract

import com.alliky.common.entity.BaseResponse
import com.alliky.common.entity.User
import com.alliky.core.base.IModel
import com.alliky.core.base.IPresenter
import com.alliky.core.base.IView
import io.reactivex.Observable

/**
 * @Author: wxianing
 * @CreateDate: 2022/2/22 21:23
 * @Description: java类作用描述
 */
interface LoginContract {
    interface View : IView {
        fun loginSuccess(user: User)
    }

    interface Presenter : IPresenter<View> {
        fun doLogin(username: String, password: String)
    }

    interface Model : IModel {
        fun doLogin(username: String, password: String): Observable<BaseResponse<User>>
    }
}